// 全局公共变量
window.STATIC_CONFIG || (STATIC_CONFIG = {});
STATIC_CONFIG.LEISUCDN = '//cdn.leisu.com';
STATIC_CONFIG.WWWROOOT = '//www.leisu.com';

// 弹出框
window.Model_Date_Star||(Model_Date_Star = {
    "Success": [
        //model:success类型的是成功弹窗，error是错误弹窗
        {
            "id": "1", "model": 'success', "title": "添加地址失败", "detail": "", "content": "",
            "href": "http://www.haier.com/", "btn": "关注", "footer_content": "关注海尔微信公众号获取更多权益"
        },
        {
            "id": "2",
            "model": 'success',
            "title": "绑定成功",
            "detail": "关联产品成功,您获得1220海贝",
            "content": "积分将在48小时内到账",
            "btn": "立即登录/注册",
            "href": "http://www.haier.com/",
            "btn": "关注",
            "footer_content": "关注海尔微信公众号获取更多权益"
        },
        {
            "id": "3", "model": 'success', "title": "绑定失败", "detail": "", "content": "", "btn": "",
            "href": "http://www.haier.com/", "btn": "关注", "footer_content": "关注海尔微信公众号获取更多权益"
        },
        {
            "id": "4",
            "model": 'success',
            "title": "提交成功",
            "detail": "关联产品成功,您获得1220海贝",
            "content": "",
            "btn": "立即登录/注册",
            "href": "http://www.haier.com/",
            "footer_content": "登录/注册,及时了解进度,享受会员权益"
        },
        {
            login: {
                "id": "5",
                "model": 'success1',
                "title": "提交成功",
                "detail": "您的预约已提交,我们将很快和您联系",
                "btn": "关注",
                "href": "http://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzIwNzE3NjU1MA==&scene=124#wechat_redirect",
                "footer_content": "登录或注册,及时了解进度,享受会员权益"
            },
            notLogin:{
                "id": "5",
                "model": 'success1',
                "title": "提交成功",
                "detail": "您的预约已提交,我们将很快和您联系",
                "btn": "立即登录/或注册",
                "href": "/login",
                "footer_content": "登录或注册,及时了解进度,享受会员权益"
            }
        },
        {
            "id": "6", "model": 'success', "title": "提交成功", "detail": "您的报修已提交,我们将很快和您联系", "btn": "关注",
            "href": "http://www.haier.com/", "footer_content": "关注海尔微信公众号获取更多权益"
        },
        {
            "id": "7", "model": 'success', "title": "提交成功", "detail": "您的清洗延保已提交,我们将很快和您联系", "btn": "立即登录/注册",
            "href": "http://www.haier.com/", "footer_content": "关注海尔微信公众号获取更多权益"
        },
        {
            "id": "8", "model": 'success', "title": "提交失败", "detail": "", "btn": "立即登录/注册",
            "href": "http://www.haier.com/", "footer_content": "关注海尔微信公众号获取更多权益"
        },
        {
            "id": "9", "model": 'success', "title": "是否解除权益", "btn": "是", "btn_false": "返回",
            "href": "http://www.haier.com/", "href1": "/", "footer_content": "登录或注册,及时了解进度,享受会员权益"
        },
        {
            login: {
                "id": "5",
                "closeLink":'http://code.haier.net',
                "model": 'success1',
                "title": "绑定成功",
                "detail": "<font style='font-size: 16px;'>产品关联成功，您获得1300海贝</font><br><font style='font-size: 12px'>" +
                "积分将在48小时内到账</font> " +
                "<span style='margin: 35px 0;display: inline-block;font-size: 14px;text-align: left;word-break: break-all;'>您同时获得最高<font style='color: #FE697D'>20万</font>元无抵押、无担保、纯信用借款额度,可在个人中心-信用借款中<a style='color: #005aaa;'>激活额度</a></span>",
                "btn": "关注",
                "href": "http://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzIwNzE3NjU1MA==&scene=124#wechat_redirect",
                "footer_content": "关注海尔微信公众号获取更多权益"
            },
            notLogin:{
                "id": "5",
                "model": 'success1',
                "title": "添加成功",
                "detail": "",
                "btn": "关注",
                "href": "http://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzIwNzE3NjU1MA==&scene=124#wechat_redirect",
                "footer_content": "关注海尔微信公众号获取更多权益"
            }
        }
    ],
    "Error": [
        { "id": "1", "model":'error', "title": "绑定失败", "detail": "测试文字","detail": "关联产品失败","content": "请重新关联",
            "href":"http://www.haier.com/","btn":"关注","footer_content":"关注海尔微信公众号获取更多权益" },
        { "id": "1", "model":'error', "title": "绑定失败", "detail": "测试文字","detail": "关联产品失败","content": "请重新关联2",
            "href":"http://www.haier.com/","btn":"关注","footer_content":"关注海尔微信公众号获取更多权益2" }
    ]
});
// 修改密码成功
function updatePwdSuccess1() {
    CommonJs.alert.show({
        "model": 'success1',
        "title": "修改密码",
        "detail": "<font style='font-size: 16px;'>修改密码成功</font>",
        "btn": "确定"
    });
}
// 修改密码失败
function updatePwdError() {
    CommonJs.alert.show({
        "model": 'error',
        "title": "修改密码",
        "detail": "<font style='font-size: 16px;'>修改密码失败</font>",
        "btn": "确定"
    });
}

// 绑定邮箱成功
function updateEmailSuccess1() {
    CommonJs.alert.show({
        "model": 'success1',
        "title": "绑定邮箱",
        "detail": "<font style='font-size: 16px;'>绑定邮箱成功</font>",
        "btn": "确定"
    });
}
// 绑定邮箱失败
function updateEmailError() {
    CommonJs.alert.show({
        "model": 'error',
        "title": "绑定邮箱",
        "detail": "<font style='font-size: 16px;'>绑定邮箱失败</font>",
        "btn": "确定"
    });
}

// 绑定手机成功
function updateMobileSuccess1() {
    CommonJs.alert.show({
        "model": 'success1',
        "title": "绑定手机",
        "detail": "<font style='font-size: 16px;'>绑定手机成功</font>",
        "btn": "确定"
    });
}
// 绑定手机失败
function updateMobileError() {
    CommonJs.alert.show({
        "model": 'error',
        "title": "绑定手机",
        "detail": "<font style='font-size: 16px;'>绑定手机失败</font>",
        "btn": "确定"
    });
}

// 新增地址成功
function addAddresSuccess1() {
    CommonJs.alert.show({
        "model": 'success1',
        "title": "新增地址",
        "detail": "<font style='font-size: 16px;'>新增地址成功</font>",
        "btn": "确定"
    });
}
// 新增地址失败
function addAddresError() {
    CommonJs.alert.show({
        "model": 'error',
        "title": "新增地址",
        "detail": "<font style='font-size: 16px;'>新增地址失败</font>",
        "btn": "确定"
    });
}
// 修改地址成功
function updateAddresSuccess1() {
    CommonJs.alert.show({
        "model": 'success1',
        "title": "修改地址",
        "detail": "<font style='font-size: 16px;'>修改地址成功</font>",
        "btn": "确定"
    });
}
// 修改地址失败
function updateAddresError() {
    CommonJs.alert.show({
        "model": 'error',
        "title": "修改地址",
        "detail": "<font style='font-size: 16px;'>修改地址失败</font>",
        "btn": "确定"
    });
}
// 删除地址成功
function delAddresSuccess1() {
    CommonJs.alert.show({
        "model": 'success1',
        "title": "删除地址",
        "detail": "<font style='font-size: 16px;'>删除地址成功</font>",
        "btn": "确定"
    });
}
// 删除地址失败
function delAddresError() {
    CommonJs.alert.show({
        "model": 'error',
        "title": "删除地址",
        "detail": "<font style='font-size: 16px;'>删除地址失败</font>",
        "btn": "确定"
    });
}


// 头像修改成功
function updateFaceSuccess1() {
    CommonJs.alert.show({
        "model": 'success1',
        "title": "头像修改",
        "detail": "<font style='font-size: 16px;'>头像修改成功</font>",
        "btn": "确定"
    });
}
// 头像修改失败
function updateFaceError() {
    CommonJs.alert.show({
        "model": 'error',
        "title": "头像修改",
        "detail": "<font style='font-size: 16px;'>头像修改失败</font>",
        "btn": "确定"
    });
}

// 修改个人资料成功
function updateUserinfoSuccess1() {
    CommonJs.alert.show({
        "model": 'success1',
        "title": "修改个人资料",
        "detail": "<font style='font-size: 16px;'>修改个人资料成功</font>",
        "btn": "确定"
    });
}
// 修改个人资料失败
function updateUserinfoError() {
    CommonJs.alert.show({
        "model": 'error',
        "title": "修改个人资料",
        "detail": "<font style='font-size: 16px;'>修改个人资料失败</font>",
        "btn": "确定"
    });
}